<ion-side-menus enable-menu-with-back-views="true">

  <ion-side-menu-content drag-content="false">
    <ion-nav-bar class="bar-royal bar-clear" align-title="center">
      <ion-nav-back-button>
      </ion-nav-back-button>

      <ion-nav-buttons side="right">
        <button class="button button-icon ion-navicon rotate90" menu-toggle="right"></button>
      </ion-nav-buttons>
    </ion-nav-bar>
    <ion-nav-view name="menuContent"></ion-nav-view>
    <ion-tabs class="tabs-icon-top tabs-color-active-royal" ng-class="{'tabs-item-hide':!$root.shouldShowTabs}">

      <ion-tab title="易联锁" icon-off="ion-ios-home-outline" icon-on="ion-ios-home" href="#/home">
      </ion-tab>

      <ion-tab title="销售" icon-off="ion-stats-bars" icon-on="ion-connection-bars" href="#/sale">
      </ion-tab>

      <ion-tab title="库存" icon-off="ion-social-dropbox-outline" icon-on="ion-social-dropbox" href="#/inventory">
      </ion-tab>

     <ion-tab title="采购" icon-off="ion-ios-cart-outline" icon-on="ion-ios-cart" href="#/purchase">
      </ion-tab>
    </ion-tabs>

  </ion-side-menu-content>

  <ion-side-menu side="right" class="dark-bg light" width="200">
    <ion-content>
      <div class="text-center padding">
        <a class="face" ui-sref="app.account"><i class="icon ion-person"></i></a>
        <div class="name">{{$root.currentUser.profile.name}} 您好</div>
      </div>
      <ion-list>
        <ion-item menu-close ui-sref="app.home" class="item-dark">
           首页
        </ion-item>

        <ion-item menu-close ui-sref="app.account" class="item-dark">
          账户信息
        </ion-item>

        <ion-item menu-close href="#/base-data" class="item-dark">
          基础信息
        </ion-item>


          <ion-item menu-close ng-controller="LogoutCtrl" ng-click="logout()" class="item-dark">
          退出
        </ion-item>
      </ion-list>
    </ion-content>
  </ion-side-menu>
</ion-side-menus>
